import { Alert } from 'antd';
import { FormFieldSet } from '.';

export default function ErrorTips({ children }: { children: string }) {
  return (
    process.env.NODE_ENV === 'development' && (
      <FormFieldSet>
        <Alert
          type='error'
          showIcon
          message={children}></Alert>
      </FormFieldSet>
    )
  );
}
